try:
    # print(num)
    print(1 / 0)
except (NameError, ZeroDivisionError) as e:
    print(e)
